<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Dashboard Template for Bootstrap</title>
    <!-- Bootstrap core CSS -->
    <link href="asserts/css/bootstrap.min.css" th:href="@{/webjars/bootstrap/4.0.0/css/bootstrap.css}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="asserts/css/dashboard.css" th:href="@{/asserts/css/dashboard.css}" rel="stylesheet">

    <!--导入jQuery的js文件-->
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <style type="text/css">
        /* Chart.js */

        @-webkit-keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        @keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        .chartjs-render-monitor {
            -webkit-animation: chartjs-render-animation 0.001s;
            animation: chartjs-render-animation 0.001s;
        }
    </style>
</head>

<body>
<!--引入抽取的topbar-->
<!--模板名：会使用thymeleaf的前后缀配置规则进行解析-->
<div th:replace="commons/bar::topbar"></div>

<div class="container-fluid">
    <div class="row">
        <!--引入侧边栏-->
        <div th:replace="commons/bar::#sidebar(activeUri='person')"></div>

        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">

            <h3>咨询页面：</h3></br>

            <form th:action="@{/article/addarticle}" method="post">
                <!--<input type="hidden" name="_method" value="put" th:if="${user!=null}"/>-->
                <!--<input type="hidden" name="id" th:if="${user!=null}" th:value="${user.id}">-->
                <table class="table table-striped table-sm">
                    <thead>
                    <tr>
                        <th >*资讯标题：</th>
                        <th>
                            <input type="text" name="title" disabled=""  th:value="${article.getArticleConstom().title}">
                            <input type="hidden" id="id" th:value="${article.getArticleConstom().id}">
                        </th>
                    </tr>
                    <tr>
                        <th >*资讯来源：</th>
                        <th>
                            <input type="text" name="source" disabled="" th:value="${article.getArticleConstom().source}">
                        </th>
                    </tr>
                    <tr>
                        <th >*资讯描述：</th>
                        <th>
                            <input type="text" name="summary" disabled="" th:value="${article.getArticleConstom().summary}">
                        </th>
                    </tr>
                    <tr>
                        <th >*资讯图片：</th>
                        <th>
                            上传控件
                        </th>
                    </tr>
                    <tr>
                        <th >*作者：</th>
                        <th>
                            <input type="text" name="author" disabled="" th:value="${article.getArticleConstom().author}">
                        </th>
                    </tr>
                    <tr>
                        <th >时间：</th>
                        <th>
                            时间控件
                        </th>
                    </tr>
                    <tr>
                        <th >*标签：</th>
                        <th>
                            添加标签
                        </th>
                    </tr>
                    <tr>
                        <th >*操作：</th>
                        <th>
                            <input type="checkbox" name="allowUp" disabled="" checked="${article.getArticleConstom().allowUp}==0?'':'checked'">点赞
                            <input type="checkbox" name="allowFav" disabled="" checked="${article.getArticleConstom().allowUp}==0?'':'checked'">收藏
                        </th>
                    </tr>
                    <tr>
                        <th >*正文：</th>

                    </tr>
                    <tr>
                        <th></th>
                        <th>
                            <textarea  name="content" style="width: 400px;height: 400px" disabled="" th:text="${article.getArticleConstom().content}"  ></textarea>
                        </th>
                    </tr>

                </table>
                <a class="btn btn-sm btn-primary" href="emp" th:href="@{/article/passarticle/}+${article.getArticleConstom().id}">通过</a>
                <a class="btn btn-sm btn-primary" href="emp" th:href="@{/article/disablearticle/}+${article.getArticleConstom().id}">驳回</a>
            </form>
        </main>
    </div>
</div>

</body>


</html>